
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.Calendar"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="java.lang.String"%>
<%@page import="seace.utils.Constants"%>
<%
	SimpleDateFormat formatador = new SimpleDateFormat("dd/MM/yyyy");
	Calendar data = Calendar.getInstance();
	//cria a string 
	String novaData = formatador.format(data.getTime());
	formatador = new SimpleDateFormat("hh:mm");
	String hora = formatador.format(data.getTime());
%>

<% 	
	session.setAttribute("lastPage","../credenciamento/crachas.jsp");
%>

<div id="centro">
	
	<h2>Selecione a <%="Op\u00e7\u00e3o" %> Desejada:<h2>
	<input type="radio" name="cracha" value="1" onclick="includeDivInOther('um','gerar');" /> <label>Individual</label>
	<input type="radio" name="cracha" value="2" onclick="includeDivInOther('todos','gerar');" /><label> Gerar (Todos)</label>
	<br /> <br />

	<div id="gerar"> </div>
	
	<div id="um" style="visibility:hidden;">
		<span>Crachá Individual</span>
		<form action="../service" method="GET">
			<label >Inscrição</label><br />
			<input type="text" name="inscricao" onkeypress="return IsNumber(event);"/> <br />
			<span id="sp_res">(Somente números)</span><br />
			<input type="hidden" name="seace" value="GerarCrachas" /> 
			<input type="hidden" name="action" value="<%=Constants.UM%>" />  
			<input type="button" id="btn_1cr" value="Gerar Crachá Individual" onclick="enviaFormSubmit(this.form,'sp_res');"/> 
			<br />
			<a href="http://www.colider.unemat.br/seace/"> Consultar Inscrição</a>
		</form>
	</div>
	
	<div id="todos" style="visibility:hidden;">
		<form action="../service" method="GET">
			<input type="submit" value="**** Gerar Todos ****" />
			<input type="hidden" name="seace" value="GerarCrachas" /> 
			<input type="hidden" name="action" value="<%=Constants.TODOS%>" />
		</form>
	</div>
	
</div>